package com.bright.ghj.overt.pojo.dto;

import com.bright.ghj.common.pojo.dto.BaseDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Map;

@EqualsAndHashCode(callSuper = false)
@Data
public class TableDataDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "年份")
//    @NotNull(message = "年份不能为空")
    private Integer years;

    @ApiModelProperty(value = "月份")
//    @NotNull(message = "月份不能为空")
    private Integer months;

    private Integer days;

    @ApiModelProperty(value = "账套号")
//    @NotNull(message = "账套号不能为空")
    private String ztId;

    @ApiModelProperty(value = "表名")
//    @NotBlank(message = "表名不能为空")
    private String tableName;
    private String distNo;
    private String userName;

    @ApiModelProperty(value = "open表id值", required = true)
//    @NotBlank(message = "id不能为空")
    private Integer id;

//    @ApiModelProperty(value = "mainModal表id值", required = true)
//    @NotBlank(message = "mainModalId不能为空")
//    private Integer mainModalId;

    private String sno;

//    @ApiModelProperty(value = "是否报审")
//    private boolean isReadyAudit;

    /**
     * 格式 Map<String, List<Map<String, Object>>>  key=表名 value=表数据 这样设计是为了兼容多子表
      */
    @ApiModelProperty(value = "表数据 JSON格式 一级：key=表名 value=数据列表；二级：key=字段名大写 value=字段数据", required = true)
    private String tableData;

    @ApiModelProperty(value = "出纳等脚注修改后的值 如果传空对象则不修改 key=footerKey value=脚注值")
    private Map<String, Object> footerMap;
}
